package com.xbongbong.paas.pojo;

import lombok.Getter;
import lombok.Setter;

/**
 * 导出excel状态返回类
 *
 * @author zheng.li
 * @version v1.0
 * @date 2019/5/13 9:56
 * @since v1.0
 */
@Setter
@Getter
public class ExportStatusPojo {

    /**
     * 下载链接
     */
    String url;
    /**
     * name
     */
    String name;
    /**
     * excel总行数
     */
    Integer totalNum = 0;
    /**
     * 成功总数
     */
    Integer successNum = 0;
    /**
     * 是否导出完成 1,导出失败，2，导出进行中，3，导出成功
     */
    Integer finish = 2;
    /**
     * 应用id
     */
    private Long appId;
    /**
     * formId
     */
    private Long formId;
    /**
     * 菜单id
     */
    private Long menuId;
    /**
     * saas标志
     */
    private Integer saasMark;
    /**
     * 业务类型
     */
    private Integer businessType;
    /**
     * 导出错误消息
     */
    private String errorMsg;

    public ExportStatusPojo() {
    }

    public ExportStatusPojo(Integer totalNum) {
        this.totalNum = totalNum;
    }


    public ExportStatusPojo(Long appId, Long formId, Long menuId, Integer saasMark, Integer businessType) {
        this.appId = appId;
        this.formId = formId;
        this.menuId = menuId;
        this.saasMark = saasMark;
        this.businessType = businessType;
    }
}
